package model;

import model.element.Building;
import model.element.Unit;

public class Artificial implements Ticking{

	private Unit unit;
	private static final int WAIT = 200;
	private int waited = WAIT;
	private World world;
	
	public Artificial(Unit unit, World world){
		this.unit = unit;
		this.world = world;
	}
	
	@Override
	public void tick() {
		if(!unit.hasPath()){
			waited++;
			if(waited>=WAIT){
				waited = 0;
				/*Building b = (Building)world.getRandomBlocking(Building.class);
				if(b!=null){
					
				}*/
			}
		}
	}

}